<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ page import="com.weifly.jettycn.JettycnUtil" %>
<%@ page import="com.weifly.jettycn.domain.Project" %>
<%@ page import="com.weifly.jettycn.util.PageInfo" %>
<%@ page import="java.util.List" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link rel="stylesheet" type="text/css" href="<%=request.getContextPath()%>/css/homepage.css"  />
    <title>weijx的个人网站</title>
  </head>
  <body>
    <div id="homepage">
      <jsp:include page="/header.jsp"/>
      <table class="table_layout" border="0" cellpadding="0" cellspacing="0" style="margin: 10px 0px 10px 0px;">
        <tr>
          <td width="460px" valign="top">
            <jsp:include page="/main/main_jettycn.jsp"/>
          </td>
          <td width="10px"></td>
          <td width="480px" valign="top">
            <div class="box">
              <h3>
                <span>最新项目</span>
                <a class="forum_more" href="<%=request.getContextPath()%>/project/main.do">更多</a>
              </h3>
              <div style="padding: 5px;">
<%
	PageInfo pageInfo = (PageInfo)request.getAttribute("projectList");
	List projectList = pageInfo.getDataList();
	for(int i=0;i<projectList.size();i++){
		Project pro = (Project)projectList.get(i);
%>
                  <table class="table_layout" border="0" cellpadding="0" cellspacing="0">
                    <tr>
                      <td>
                        [ <a href="<%=request.getContextPath()%>/project/main.do?catalog=<%=pro.getCatalogid()%>"><%=JettycnUtil.translateCatalog(pro.getCatalogid())%></a> ]&nbsp;
                        <a href="<%=request.getContextPath()%>/project/detail.do?project=<%=pro.getPrjid()%>"><%=pro.getName()%></a></td>
                      <td width="130px" align="right"><%=JettycnUtil.formatDateTime(pro.getUpdate()) %></td>
                    </tr>
                  </table>
<%
	}
%>
              </div>
            </div>
          </td>
          <td width="10px"></td>
        </tr>
      </table>
      <jsp:include page="/footer.jsp"/>
    </div>
  </body>
</html>